package com.example.zlw.dem26;

/**
 * @program: Zlw
 * @description:
 * @author: 诸葛龙辰
 * @create: 2022-11-10 20:24
 **/
@SuppressWarnings("all")
public  abstract class Chaocai {
    public abstract void buy();
    //材料处理
    public abstract void handle();
    //起锅烧油
    public abstract void qiguoshaoyou();
    //放入食材
    public abstract void putin();
    //放入调料
    public abstract void tiaoliao();
    //翻炒均匀
    public abstract void fanchao();
    //盛菜
    public abstract void chengcai();

    //炒菜---该方法不会被重写
    public final void chaiCai() {
        buy();
        handle();
        qiguoshaoyou();
        putin();
        tiaoliao();
        fanchao();
        chengcai();
    }

}
